package br.edu.ufcg.dsc.sig.geointerest.gui.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GeoInterestServerAsync {
	void greetServer(String input, AsyncCallback<String> callback);
	
	public void addPOI(POI poi, AsyncCallback<POI> callback);
	
	public void removePOI(String id, AsyncCallback<Void> callback);
	
	public void editPOI(POI poi, AsyncCallback<Void> callback);
	
	public void darAvaliacao(String poiId, String dono, String comentario, double nota, AsyncCallback<Void> callback);
	
	public void getAllPOIs(AsyncCallback<List<POI>> callback);
	
	public void avaliar(QueryObject objetoConsulta, AsyncCallback<List<POI>> callback);
}
